package com.syh.transactionservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syh.bscommon.pojo.Result;
import com.syh.bscommon.pojo.Transactions;
import com.syh.transactionservice.pojo.DataIndex;
import com.syh.transactionservice.pojo.Notifications;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author syh
 * @since 2024-07-02
 */
public interface ITransactionsService extends IService<Transactions> {

    List<Transactions> getTransactions(Integer sellerId);

    BigDecimal getById_transactions(Integer id);

    List<Transactions> getTransactionsByBuyerId(Integer buyerId);

    List<Transactions> getTransactionsBySellerId(Integer sellerId);

    List<Transactions> getTransactionsBySellerId_a(Integer sellerId);

    List<Transactions> getTransactionsByBuyerId_a(Integer buyerId);

    List<Transactions> getList();

    List<Transactions> getLists();

    DataIndex getTMR(Integer buyerId);

    DataIndex getTMRvalue(Integer buyerId);

    DataIndex getTMCvalue(Integer sellerId);

    List<Transactions> getTransactionSell(Integer sellerId);

    List<Transactions> getTransactionBuy(Integer buyerId);

    List<Notifications> getNotification(Integer id);

    List<Transactions> getAllMainSome(Integer id);

    Result add(Transactions transactions);

    Result purchase(Transactions transactions);

    Result placeBid(Transactions transactions);

    Result confirmTransaction_m3(Transactions transactions);

    Result confirmTransaction_m4(Transactions transactions);

    Result confirmTransaction_a_m4(Transactions transactions);

    Result confirmTransaction_admin(Transactions transactions);

    Result confirmTransaction_admin_a(Transactions transactions);
}
